history | NN 2 IE 3 DOM n/a | ||||
During a browser session, the browser
uses the history object to maintain a list of URLs
visited by the user. This list (stored as an array) is used by the
browser to assist with navigation via the | |||||
Object Model Reference
|
current, next, previous | NN 4 IE n/a DOM n/a | ||
Read-only | |||
The URL of the current, next, and previous URLs in the history array. This information is private and can be retrieved in Navigator 4 (or later) only with signed scripts and the user's approval. Signed scripts are beyond the scope of this book, but a good JavaScript book should show you how to create and program signed scripts. | |||
Examplevar prevURL = parent.otherFrame.history.previous | |||
Value String. | |||
|
length | NN 2 IE 3 DOM n/a | ||
Read-only | |||
The number of items in the history list. Even with this information, you are not allowed to extract a specific history entry except with signed scripts and the user's permission in Navigator 4 or later. | |||
Exampleif (history.length > 4) { ... } | |||
Value Integer. | |||
|
back( ) | NN 2 IE 3 DOM n/a |
The basic action is to navigate to the previously viewed document,
similar to the click of the browser's | |
Returned Value None. | |
Parameters None. |
forward( ) | NN 2 IE 3 DOM n/a |
The basic action is to navigate to the same URL that the
browser's | |
Returned Value None. | |
Parameters None. |
go( ) | NN 2 IE 3 DOM n/a | ||||
go(stepCount | "URL") Navigates to a specific position in the history listing. | |||||
Returned Value None. | |||||
Parameters
|